<template>
	<!-- 这是图表模板 -->
	<view style="position: relative; width: 100%; height: 100%;"><mpvue-echarts :canvasId="canvasId" :lazyLoad="lazyLoad" :option="option" /></view>
</template>

<script>
// #ifdef APP-PLUS || H5
//   APP、H5 环境
import mpvueEcharts from '@/mpvue-echarts/src/appvue-echarts.vue';
// #endif
// #ifndef APP-PLUS || H5
import mpvueEcharts from '@/mpvue-echarts/src/mpvue-echarts.vue';
//  非 APP、H5 环境
// #endif
export default {
	data() {
		return {};
	},
	props: {
		canvasId: {
			type: String,
			default: 'ec-canvas'
		},
		option: {
			default: false
		},
		lazyLoad: {
			type: Boolean,
			default: false
		},
		disableTouch: {
			type: Boolean,
			default: false
		},
		throttleTouch: {
			type: Boolean,
			default: false
		}
	},
	components: {
		mpvueEcharts
	},
	methods: {}
};
</script>
